package com.hebeiboruan.common.exception;

/**
 * @author 刘焕林
 * @date 2023/11/02
 */
public enum ServiceResultEnum implements CommonResultEnum{
    ISNULL("1001","不能为空"),
    INSERT_TRUE("200","新增成功"),
    UPDATE_TRUE("200","修改成功"),
    SELECT_TRUE("200","查询成功"),
    CHECK_TRUE("200","校验无误"),
    REQUIRED("1002","有必填项未填"),
    ILLEGALITY_NUMBER("1003","数字非法"),
    ILLEGALITY_TYPE("1004","非法类型"),
    INSERT_ERROR("1005","保存失败"),
    UPDATE_ERROR("1006","修改失败"),
    REMOVE_TRUE("200","删除成功"),
    REMOVE_ERROR("1007","删除失败"),
    PHONE_ERROR("1008","手机格式不正确"),
    EMAIL_ERROR("1009","邮箱格式不正确"),
    BATCH_REMOVE_ERROR("2006","批量删除失败"),
    BATCH_INSERT_ERROR("2007","导入失败"),
    BATCH_INSERT_TRUE("200","导入成功"),
    BATCH_OUT_TRUE("200","导出成功"),
    BATCH_OUT_ERROR("1010","导出失败"),
    BUILD_TRUE("200","生成成功");
    private String result;
    private String errorCode;

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    ServiceResultEnum(String errorCode,String result) {
        this.errorCode = errorCode;
        this.result = result;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }
}